﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ExpertMIS.UserControl
{
    public partial class ucShortSearchBar : System.Web.UI.UserControl
    {
        private static string PROMPT = "这里输入搜索内容";

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected string GetPromptString()
        {
            return PROMPT;
        }

        protected string GetSearchKey()
        {
            return string.IsNullOrEmpty(Request["q"]) ? PROMPT : Request["q"];
        }
    }
}